home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000180_connolly@pixel.convex.com _Thu Jul 16 05:36:01 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  3KB

  1. Return-Path: <connolly@pixel.convex.com>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA05320; Thu, 16 Jul 92 05:36:01 MET DST
  4. Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
  5.     id AA02349; Thu, 16 Jul 92 05:35:44 +0200
  6. Received: from pixel.convex.com by convex.convex.com (5.64/1.35)
  7.     id AA25162; Wed, 15 Jul 92 22:35:21 -0500
  8. Received: from localhost by pixel.convex.com (5.64/1.28)
  9.     id AA24812; Wed, 15 Jul 92 22:35:19 -0500
  10. Message-Id: <9207160335.AA24812@pixel.convex.com>
  11. To: www-talk@nxoc01.cern.ch
  12. Subject: HTML DTD enclosed
  13. Date: Wed, 15 Jul 92 22:35:19 CDT
  14. From: Dan Connolly <connolly@pixel.convex.com>
  15.  
  16. <!-- html.dtd - document type declaration subset for
  17.                 HyperText Markup Language as defined
  18.         by the World Wide Web project.
  19.  
  20.     15 Jul 92 by connolly@convex.com
  21.  
  22.     See also: http://info.cern.ch/hypertext/WWW/MarkUp/Tags.html
  23.   -->
  24.  
  25. <!--      Terminal symbols        -->
  26.  
  27. <!ENTITY lt "<">
  28. <!ENTITY gt ">">
  29. <!ENTITY amp "&">
  30.  
  31. <!-- some existing html uses these. I think they meant
  32.     &
  33.      in stead of 
  34.     &.
  35.      -->
  36. <!ENTITY lt. "<">
  37. <!ENTITY gt. ">">
  38. <!ENTITY amp. "&">
  39.  
  40. <!--    Non-ELEMENT symbols       -->
  41.  
  42. <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
  43. <!ENTITY % list "UL|OL|DIR|MENU|DL">
  44. <!ENTITY % text "P|#PCDATA">
  45. <!ENTITY % raw "XMP|LISTING">
  46. <!-- PlainText is more than 8 characters, and changing the
  47.      NAMELEN capacity involves including a lengthy SGML declaration
  48.      in every HTML file. Besides: the semantics of PlainText can't
  49.      be captured by real SGML anyway. -->
  50. <!ENTITY % body "%heading|%list|%text|%raw">
  51.  
  52. <!--     Document structure       -->
  53.  
  54. <!ELEMENT HTML    O O  ((TITLE? & NEXTID? & ISINDEX?), BODY, ADDRESS?)>
  55.  
  56. <!ELEMENT TITLE    - -  (#PCDATA)>
  57.  
  58. <!ELEMENT NEXTID - O EMPTY >
  59. <!ATTLIST NEXTID N NUMBER #REQUIRED>
  60. <!-- as noted in Tags.html, the conventional <NEXTID 10> is
  61.      illegal. Use <NEXTID N=10> to comply with this DTD. -->
  62.  
  63. <!ELEMENT ISINDEX - O EMPTY >
  64.  
  65. <!ELEMENT BODY O O ((%heading), (%body)+) +(A)>
  66. <!-- The BODY element is necessary to avoid mixed content
  67.      in the HTML element. Mixed content and optional elements
  68.      don't mix very well. -->
  69.  
  70. <!ELEMENT (%heading)    - -  (%text)+
  71.     --Tags.html says titles should fit on one line, but
  72.     the browser handles paragraph breaks inside headings
  73.     gracefully. -->
  74.  
  75. <!ELEMENT (MENU|UL|OL|DIR) - -  (LI+)>
  76.  
  77. <!ELEMENT DL    - -  ((DT, DD)+)>
  78.  
  79. <!ELEMENT LI    - O  (%text)+>
  80. <!ELEMENT DT    - O  (#PCDATA)+>
  81. <!ELEMENT DD    - O  (%text)+>
  82. <!ELEMENT ADDRESS - O (%text)+ +(A)>
  83. <!-- Tags.html says "This tag is for address information, signatures,
  84. etc, normally at the top or bottom of a document." Here, it is only
  85. allowed at the end of a document. -->
  86.  
  87. <!ELEMENT (%raw) - -  CDATA>
  88. <!-- BUG:
  89. tags.html says that you can put anything but </XMP> in the
  90. text of an XMP element. SGML says that ETAGO, "</" ends a CDATA
  91. section.
  92. -->
  93.  
  94. <!ELEMENT P    - O  EMPTY -- paragraph SEPARATOR -->
  95.  
  96. <!-- We could use this to let blank lines separate paragraphs
  97.   <!ENTITY   ptag   STARTTAG "p">
  98.   <!SHORTREF bodymap "&#RS;&#RE;" ptag>
  99.   <!USEMAP   bodymap  BODY;>
  100.   -->
  101.  
  102. <!ELEMENT A    - -  (%body)+>
  103. <!ATTLIST A
  104.     HREF CDATA #IMPLIED -- attribute values with colons etc. must
  105.                 be quoted. --
  106.     NAME CDATA #IMPLIED
  107.     TYPE CDATA #IMPLIED >
  108.